Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

MyImagingCompleteProc

You can define a procedure to access QuickTime VR's prescreen buffer.

pascal OSErr MyImagingCompleteProc (QTVRInstance qtvr, SInt32 refCon);
qtvr
An instance of a QuickTime VR movie.
refCon
The reference constant specified in the call to QTVRSetPrescreenImagingCompleteProc that installed this procedure.
function result
A result code.

DESCRIPTION

Your MyImagingCompleteProc function is called whenever QuickTime VR is finished drawing an image into the prescreen buffer associated with the movie specified by the qtvr parameter. When your function is called, the drawing environment is set up so that you can draw directly into the current graphics world. Once your function returns, QuickTime VR copies the prescreen buffer to the final destination.

SPECIAL CONSIDERATIONS

If the value of the kQTVRImagingDirectDraw imaging property of the specified movie is true , then images are computed and drawn directly to the final destination without first being drawn into the prescreen buffer maintained by QuickTime VR. If your application has installed a prescreen buffer imaging completion procedure, QuickTime VR temporarilty overrides the setting of the kQTVRImagingDirectDraw property and calls your MyImagingCompleteProc function after drawing into the prescreen buffer.

SEE ALSO

Use QTVRSetPrescreenImagingCompleteProc (link) to install a prescreen buffer imaging completion procedure. See Listing 2-11 for a sample prescreen buffer imaging completion procedure.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |